from pydantic import BaseModel
from datetime import datetime


class Soil(BaseModel):
    RetrievalTime: datetime
    FarmID: int
    AvgMoisture: float
    NitrogenContent: float
    PhosphorusContent: float
    PotassiumContent: float
    OtherIndicators: str

    class Config:
        orm_mode = True
